<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">  
<title>专利协同服务网络平台</title>
<link href="${pageContext.request.contextPath}/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.2.1.min.js"></script>

</head>
<body>
	<div class="place">
	    <span>位置：</span>
	    <ul class="placeul">
	    <li><a href="#">首页</a></li>
	    <li><a href="#">已接单专利</a></li>
	    <li><a href="#">邀请协助</a></li>
	    </ul>
    </div>
    
    <div class="rightinfo">
	       <form action="${pageContext.request.contextPath}${pageModel.url}" method="post">
		    	<ul class="seachform" style="margin-left: 20px;">
				    <li><label>科技服务人员名称</label><input  name="userName" type="text" class="scinput" style="width:500px;margin-top:3px;"/></li>
				    <li><label>&nbsp;</label><input type="submit" class="scbtn"  value="查询"/></li>
			    </ul>
		    </form>
		    <table class="tablelist">
		    	<thead>
			    	<tr>
				        <th>姓名</th>
				        <th>擅长学科</th>
				        <th>单位</th>
				        <th>部门</th>
				        <th>操作</th>
			        </tr>
		        </thead>
			    <tbody>
			    	<c:forEach items="${pageModel.list}" var="science">
			    		 <tr>
					        <td>${science.userName}</td>
					        <c:forEach items="${scienceExpertsChars}" var="sciencesChars" >
								<c:if test="${sciencesChars.key == science.id}">
									<td>${sciencesChars.value}</td>
								</c:if>
							</c:forEach>
							<c:forEach items="${dicSchools}" var="dicSchool">
								<c:if test="${dicSchool.typeCode == science.schoolType}">
									 <td>${dicSchool.description}</td>
								</c:if>
							</c:forEach>
					        <td>${science.department}</td>
					        <td><a onclick="load()" href="${pageContext.request.contextPath}/scienceExpert/confirmInviteScience.do?scienceId=${science.id}&patentId=${patentId}" class="tablelink">确认邀请</a></td>
			       		 </tr> 
			    	</c:forEach>
		        </tbody>
		   </table>
		   <!-- 
			引入分页菜单
		    -->
		  <%@include file="../../common/page.jsp"%>
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	function load(){
		var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
		parent.layer.close(index);  // 关闭layer
		window.parent.location.reload();
	}
	</script>
</body>
</html>